go/types.Interface.methods (field)
20 uses
go/types (current package)
infer.go#L763: for _, m := range t.methods {
interface.go#L19: methods []*Func // ordered list of explicitly declared methods
interface.go#L69: typ.methods = methods
interface.go#L94: func (t *Interface) NumExplicitMethods() int { return len(t.methods) }
interface.go#L98: func (t *Interface) ExplicitMethod(i int) *Func { return t.methods[i] }
interface.go#L211: ityp.methods = append(ityp.methods, m)
interface.go#L218: if len(ityp.methods) == 0 && len(ityp.embeddeds) == 0 {
interface.go#L225: sortMethods(ityp.methods)
named.go#L678: if methods, copied := replaceRecvType(iface.methods, orig, n); copied {
named.go#L691: iface.methods = methods
subst.go#L191: methods := substList(t.methods, subst.func_)
subst.go#L195: methods = t.methods
subst.go#L219: iface.methods, _ = replaceRecvType(methods, t, iface)
typeset.go#L178: if !pos.IsValid() && len(ityp.methods) > 0 {
typeset.go#L179: pos = ityp.methods[0].pos
typeset.go#L254: for _, m := range ityp.methods {
typestring.go#L231: if len(t.methods) == 0 && len(t.embeddeds) == 1 {
typestring.go#L244: for _, m := range t.methods {
universe.go#L131: ityp := &Interface{methods: []*Func{err}, complete: true}